home *** CD-ROM | disk | FTP | other *** search
- on buttonDown theSprite, normal, hilite
- global DownOn
- set DownOn to the clickOn
- set the castNum of sprite theSprite to hilite
- puppetSound("mouse down")
- updateStage()
- set reHilite to 0
- repeat while the mouseDown
- if not rollOver(DownOn) then
- if not reHilite then
- set the castNum of sprite theSprite to normal
- updateStage()
- set reHilite to 1
- end if
- next repeat
- end if
- if reHilite then
- set the castNum of sprite theSprite to hilite
- updateStage()
- set reHilite to 0
- end if
- end repeat
- wait(3)
- set the castNum of sprite theSprite to normal
- updateStage()
- end
-
- on buttonUp theSprite
- global DownOn
- if rollOver(DownOn) then
- puppetSound("mouse up")
- updateStage()
- return 1
- else
- return 0
- end if
- end
-
- on stickyButtonDown theSprite, normal, hilite
- global DownOn
- set DownOn to the clickOn
- set the castNum of sprite theSprite to hilite
- puppetSound("mouse down")
- updateStage()
- set reHilite to 0
- repeat while the mouseDown
- if not rollOver(DownOn) then
- if not reHilite then
- set the castNum of sprite theSprite to normal
- updateStage()
- set reHilite to 1
- end if
- next repeat
- end if
- if reHilite then
- set the castNum of sprite theSprite to hilite
- updateStage()
- set reHilite to 0
- end if
- end repeat
- wait(3)
- end
-